/**
 * Copyright (c) 2015 Baidu. All Rights Reserved.
 *
 * @file classname模块单测
 * @author yuanguozheng
 */
var classname = require('../utils/classname');

exports.testNormalVariable = function (test) {
    test.equal('accessToken', classname.v('access_token', 'oc'));
    test.equal('accessToken', classname.v('accessToken', 'oc'));
    test.equal('AccessToken', classname.v('access_token', 'java'));
    test.equal('AccessToken', classname.v('accessToken', 'java'));
    test.equal(null, classname.v(null, null));
    test.done();
};

exports.testNormalClass = function (test) {
    test.equal('AccessTokenModel', classname.java('access_token'));
    test.equal(null, classname.java(null));
    test.done();
};

exports.testPrefixClass = function (test) {
    test.equal('BDMAccessTokenModel *', classname.oc('access_token'));
    test.equal(null, classname.oc(null));
    test.done();
};